<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<c:url var="action" value="/mySysRemarkTemplate/saveOrUpdate.html" />
	<form:form modelAttribute="mySysRemarkTemplate" action="${action}" method="post">	
		<!-- choose标签相当于if-else，平衡式的选择语句,而if标签只提供单向选择 -->
		<h3>
			<c:choose>
	      		<c:when test="${mySysRemarkTemplate.id==null}">
					添加个人评语模板
		      	</c:when>
		      	<c:otherwise>
		      		修改个人评语模板
		      	</c:otherwise>
			</c:choose>	
		</h3>	
		
		<table>
			<tr>
				<td><form:hidden path="id" /></td>
			</tr>
			<tr>
				<td>关键词</td>
				<td><form:input path="keyword"/></td>
			</tr>
			<tr>
				<td>内容</td>
				<td><form:input path="description" /></td>
			</tr>
			
				<td><input type="submit" value="提交"></td>
			</tr>
		</table>
	</form:form>
	<br>
	<a href="../mySysRemarkTemplate/list.html">查看个人评语模板</a>

</body>
</html>